# This Python file uses the following encoding: utf-8

# if__name__ == "__main__":
#     pass
def write_file():
    with open("D:/kindsOfProject/Qtcode/2025_6_22_python/a.txt", "w") as f:
        f.write("test")
    # 验证文件是否存在且内容正确
#    try:
#        with open("a.txt", "r") as f:
#           content = f.read()
#           if content == "test":
#               print("文件创建并写入成功！")
#            else:
#               print(f"文件内容错误，实际内容: '{content}'")
#     except FileNotFoundError:
#         print("文件创建失败！")
def add(a, b):
    return a + b
